package ${package}.service;

import ${package}.domain.${className};
import ${package}.common.query.${className}Query;
import org.springframework.data.domain.*;

/**
* @author ${author}
* @date ${date}
*/
public interface I${className}Service {

    /**
     * findById
     * @param id
     * @return
     */
    ${className} findById(${pkColumnType} id);

    /**
     * create
     * @param resources
     * @return
     */
    ${className} create(${className} resources);

    /**
     * update
     * @param resources
     */
    void update(${className} resources);

    /**
     * delete
     * @param id
     */
    void delete(${pkColumnType} id);


    /**
     * 查所有
     * @return
     */
    Page<${className}> getAll(${className}Query query, Pageable pageable);
}